#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
	int n,s=1;
	scanf("%d", &n);
	for (int i = 1; i < n; i++) {
		s = (s + 1) * 2;
	}
	printf("%d\n", s);
	return 0;
}